//
//  ShareCollectionViewCell.m
//  图片故事
//
//  Created by 大帅逼 on 16/3/8.
//  Copyright © 2016年 helloApp. All rights reserved.
//

#import "ShareCollectionViewCell.h"
#import "Header.h"

@implementation ShareCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {

    if (self = [super initWithFrame:frame]) {
        
        // 初始化子控件
        _shareImageView = [[UIImageView alloc] init];
        
        [_shareImageView.layer setMasksToBounds:YES];
        
        [_shareImageView.layer setCornerRadius:My_Height(30)];
        
        [_shareImageView setBackgroundColor:[UIColor whiteColor]];
        
        [self.contentView addSubview:_shareImageView];
    }
    
    return self;
}

- (void)layoutSubviews {

    [super layoutSubviews];
    
    [_shareImageView setBounds:CGRectMake(0, 0, My_Height(60), My_Height(60))];
    
    [_shareImageView setCenter:CGPointMake((SCREEN_W - 40) / 6, My_Height(40))];
}

@end
